#ifndef WIDGET_H
#define WIDGET_H

#include "new_window.h"
#include <QWidget>
#include <QTcpSocket>
#include <QTimer>
#include <QTcpServer> //监听套接字

#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    new_window *new_win;

private slots:
    void on_pwd_textChanged(const QString &arg1);

    void on_login_clicked();

private:
    Ui::Widget *ui;

    QTcpSocket *tcpSocket;

    QNetworkAccessManager *manager;

    QNetworkReply *reply;
};

#endif // WIDGET_H
